#pragma once 

#include "iostream"
#include <unistd.h>
#include <string>
#include "mprpcconfig.h"

// rpc框架基础类，负责框架的初始化
class MprpcApplication {
public:
    static void Init(int argc, char *argv[]);
    static MprpcApplication& getInstance();
    static MprpcConfig& getConfig();
private:
    static MprpcConfig m_config;
private:
    MprpcApplication() {};
    MprpcApplication(MprpcApplication&) = delete;
    MprpcApplication(const MprpcApplication&) = delete;
    void operator=(MprpcApplication&) = delete;
};


